<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>brand</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="https://cdn.bootcss.com/bootstrap-table/1.12.1/bootstrap-table.css">
    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap-table/1.12.1/bootstrap-table.js"></script>
    <link rel="stylesheet" href="carSeries.css">
    <script src="carSeries.js"></script>
    <script src="js/model.js"></script>
    <script src="js/addmodel.js"></script>
    <script src="js/editmodel.js"></script>
</head>

<body>
    <div class="series">
        <!-- 面包屑 -->
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="carSeries.html">品牌</a></li>
                <li class="breadcrumb-item active"><a onclick="backSeries()">系列</a></li>
                <li class="breadcrumb-item" aria-current="page"><a href="model.html">型号</a></li>
            </ol>
        </nav>
    </div>
    <div class="contents">
        <div class="modelSearch">
            <!-- 搜索栏 -->
            <div class="check">
                <form class="bs-example bs-example-form" role="form">
                    <!-- 新增型号 -->
                    <button type="button" class="btn btn-warning btn-sm add" onclick="addModel()">
                        新增型号 <span class="glyphicon glyphicon-pencil"></span>
                    </button>
                </form>
            </div>
            <table class="table table-bordered table-hover" id="modelTable">
            </table>
        </div>
        <!-- 型号编辑 -->
        <div class="modelEdit">
            <form class="form-inline">
                <div class="form-group">
                    <span>*</span><label for="usr"> 简 称 :</label>
                    <input type="text" class="form-control" id="editmodelname" placeholder="编辑">
                    <span>*</span><label for="usr"> 全 称 :</label>
                    <input type="text" class="form-control" id="editmodelfullname" placeholder="编辑">
                    <span>*</span><label for="usr"> 发 动 机 :</label>
                    <input type="text" class="form-control" id="editmodelengine" placeholder="编辑">
                    <span>*</span><label for="usr"> 变 速 器 :</label>
                    <input type="text" class="form-control" id="editmodeltransmission" placeholder="编辑">
                    <!-- 影藏系列id -->
                    <input type="hidden" class="form-control" id="editmodelmodelid" placeholder="编辑">
                    <!-- 保存返回按钮 -->
                    <button type="button" class="btn btn-primary" onclick="editsaveModel()">保存</button>
                    <button type="button" class="btn btn-primary" onclick="backModel()">返回</button>
                </div>
            </form>
        </div>
        <!-- 型号添加 -->
        <div class="modelAdd">
                <form class="form-inline">
                    <div class="form-group">
                            <span>*</span><label for="usr"> 简 称 :</label>
                        <input type="text" class="form-control" id="modelname" placeholder="编辑">
                    <span>*</span><label for="usr"> 全 称 :</label>
                    <input type="text" class="form-control" id="modelfullname" placeholder="编辑">
                    <span>*</span><label for="usr"> 发 动 机 :</label>
                    <input type="text" class="form-control" id="modelengine" placeholder="编辑">
                    <span>*</span><label for="usr"> 变 速 器 :</label>
                    <input type="text" class="form-control" id="modeltransmission" placeholder="编辑">
                    <!-- 影藏系列id -->
                    <input type="hidden" class="form-control" id="modelseriesid" placeholder="编辑">
                        <!-- 保存返回按钮 -->
                        <button type="button" class="btn btn-primary" onclick="addsaveModel()">保存</button>
                        <button type="button" class="btn btn-primary" onclick="backModel()">返回</button>
                    </div>
                </form>
            </div>
    </div>
       <!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        admin.52carlife.com显示
                    </h4>
                </div>
                <div class="modal-body">
                    <span id="modal-input">确认停用</span>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                    </button>
                    <button id="btn_ok" type="button" class="btn btn-primary">
                        提交更改
                    </button>
                </div>
            </div>
        </div>
    </div>
</body>

</html>